package cn.pku.ss.fa.sessionbean;

import java.util.List;

import javax.ejb.*;

import cn.pku.ss.fa.bean.*;


@Local
public interface UserManagerLocal {

	public boolean registerUser(PersonalBean userBean);
	public PersonalBean login(String name, String password);
	public PersonalBean findUserByUserId(int userId);
	public void updateUserStatusByUserId(int userId, String userStatus);
	public boolean makeFriends(int userId1, int userId2);
	public List<FriendLittleBean> getFriendsByName(String name);
	public List<FriendLittleBean> getFriends(int Id);
	public boolean isFriendship(int userId1, int userId2);
	public boolean updateUserProfile(int userId, String newProfile);
}
